package com.gwz.wxtime.chessboard.entity;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class CardStatusDTO {
    /**
     * 牌
     */
    private List<Integer> cards;
    /**
     * 主要的牌
     */
    private List<Integer> mainCard;

    /**
     * -1: 类型错误, 1: 单 2:双 3:连 4:三不带 5:三带一 6: 三带二 7: 炸  8: 连对 9: 飞机不带 10: 飞机带1 11:飞机带2  12:四带2 13:四带2对 14:顺四不带 15:顺四带2 16:四顺带2对
     */
    private int type;


    public void mainCardTrans(List<Integer> cards, int count) {
        List<Integer> mainCard = new ArrayList<>();
        for (Integer card : cards) {
            for (int i = 0; i < count; i++) {
                mainCard.add(card);
            }
        }
        this.mainCard = mainCard;
    }
}
